const mongoose = require('mongoose');
// 5.创建文档的结构对象(设置对象数据类型格式)
let BookSchema = new mongoose.Schema({
  name: String,
  author: String,
  price: Number,
});
// 6.创建模型对象
let BookModel = mongoose.model('books', BookSchema);


module.exports = BookModel;